
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>配置中心 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="oneplatform.html" />
    
    
    <link rel="prev" href="../quick-start.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    概要
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.1" data-path="../architecture.html">
            
                <a href="../architecture.html">
            
                    
                    总体架构
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../quick-start.html">
            
                <a href="../quick-start.html">
            
                    
                    快速开始
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter active" data-level="1.2.1" data-path="confcenter.html">
            
                <a href="confcenter.html">
            
                    
                    配置中心
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="oneplatform.html">
            
                <a href="oneplatform.html">
            
                    
                    oneplatform企业级开发平台
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="passport.html">
            
                <a href="passport.html">
            
                    
                    统一认证平台
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../jeesuite-lib.html">
            
                <a href="../jeesuite-lib.html">
            
                    
                    jeesuite-libs使用文档
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../jeesuite-libs/common.html">
            
                <a href="../jeesuite-libs/common.html">
            
                    
                    common模块
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../jeesuite-libs/common2.html">
            
                <a href="../jeesuite-libs/common2.html">
            
                    
                    common2模块
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="../jeesuite-libs/spring.html">
            
                <a href="../jeesuite-libs/spring.html">
            
                    
                    Spring模块
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="../jeesuite-libs/mybatis.html">
            
                <a href="../jeesuite-libs/mybatis.html">
            
                    
                    mybatis模块
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5" data-path="../jeesuite-libs/cache.html">
            
                <a href="../jeesuite-libs/cache.html">
            
                    
                    cache模块
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.6" data-path="../jeesuite-libs/kafka.html">
            
                <a href="../jeesuite-libs/kafka.html">
            
                    
                    kafka模块
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.7" data-path="../jeesuite-libs/scheduler.html">
            
                <a href="../jeesuite-libs/scheduler.html">
            
                    
                    scheduler模块
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.8" data-path="../jeesuite-libs/filesystem.html">
            
                <a href="../jeesuite-libs/filesystem.html">
            
                    
                    filesystem模块
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.9" data-path="../jeesuite-libs/rest.html">
            
                <a href="../jeesuite-libs/rest.html">
            
                    
                    restAPI模块
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.10" data-path="../jeesuite-libs/springboot-starter.html">
            
                <a href="../jeesuite-libs/springboot-starter.html">
            
                    
                    springboot-starter模块
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../integration.html">
            
                <a href="../integration.html">
            
                    
                    系统集成
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../integration/confcenter.html">
            
                <a href="../integration/confcenter.html">
            
                    
                    集成配置中心
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../integration/passport.html">
            
                <a href="../integration/passport.html">
            
                    
                    集成认证中心
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../base-env-install.html">
            
                <a href="../base-env-install.html">
            
                    
                    附：基础环境搭建
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >配置中心</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h3 id="&#x4E0B;&#x8F7D;&#x9879;&#x76EE;">&#x4E0B;&#x8F7D;&#x9879;&#x76EE;</h3>
<pre><code>git clone https://git.oschina.net/vakinge/jeesuite-config.git
</code></pre><h3 id="&#x7F16;&#x8BD1;&#x9879;&#x76EE;">&#x7F16;&#x8BD1;&#x9879;&#x76EE;</h3>
<pre><code>mvn clean package -DskipTests=true
</code></pre><p><strong>&#x6700;&#x7EC8;&#x751F;&#x6210;&#x90E8;&#x7F72;&#x5305;&#x4E3A;&#xFF1A;</strong>jeesuite-config-server/target/jeesuite-config-server.jar</p>
<h3 id="&#x521B;&#x5EFA;&#x6570;&#x636E;&#x5E93;&#x8868;">&#x521B;&#x5EFA;&#x6570;&#x636E;&#x5E93;&#x8868;</h3>
<pre><code>CREATE DATABASE IF NOT EXISTS `configcenter` DEFAULT CHARSET utf8 COLLATE utf8_general_ci;
</code></pre><p>&#x5BFC;&#x5165;db.sql</p>
<h3 id="&#x4FEE;&#x6539;&#x914D;&#x7F6E;">&#x4FEE;&#x6539;&#x914D;&#x7F6E;</h3>
<p>&#x53EF;&#x4EE5;&#x5728;&#x7F16;&#x8BD1;&#x524D;&#x76F4;&#x63A5;&#x4FEE;&#x6539;`jeesuite-config/jeesuite-config-server/src/main/resources/application.properties`&#x6587;&#x4EF6;&#xFF0C;&#x4E5F;&#x53EF;&#x4EE5;&#x52A0;&#x8F7D;&#x5916;&#x90E8;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#xFF0C;&#x63A8;&#x8350;&#x5916;&#x90E8;&#x52A0;&#x8F7D;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x3002;</p>
<p><strong>&#x914D;&#x7F6E;&#x8BF4;&#x660E;</strong></p>
<pre><code>spring.application.name=jeesuite-config-server
server.port=19992

mybatis.type-aliases-package=com.jeesuite.admin.dao.entity
mybatis.mapper-locations=classpath:mapper/*Mapper.xml

#&#x4EE5;&#x4E0B;&#x914D;&#x7F6E;&#xFF0C;&#x6839;&#x636E;&#x9700;&#x8981;&#x4FEE;&#x6539;
#&#x6570;&#x636E;&#x5E93;&#x914D;&#x7F6E;
db.group.size=1
db.shard.size=1000
db.driverClass=com.mysql.jdbc.Driver
db.initialSize=2
db.minIdle=1
db.maxActive=10
db.maxWait=60000
db.timeBetweenEvictionRunsMillis=60000
db.minEvictableIdleTimeMillis=300000
db.testOnBorrow=false
db.testOnReturn=false
master.db.url=jdbc:mysql://127.0.0.1:3306/configcenter?useUnicode=true&amp;amp;characterEncoding=UTF-8
master.db.username=root
master.db.password=root
master.db.initialSize=2
master.db.minIdle=2
master.db.maxActive=20

#&#x662F;&#x5426;&#x5141;&#x8BB8;&#x901A;&#x8FC7;&#x5916;&#x7F51;&#x62C9;&#x53D6;&#x914D;&#x7F6E;
api.extranet.enabled=true
#&#x662F;&#x5426;&#x542F;&#x7528;&#x5B89;&#x5168;ip
safe.ipfilter.enabled=false
#&#x654F;&#x611F;&#x64CD;&#x4F5C;&#x5B89;&#x5168;&#x7801;(&#x76F8;&#x5F53;&#x4E8E;&#x4E8C;&#x6B21;&#x5BC6;&#x7801;)
sensitive.operation.authcode=12345678

#&#x5982;&#x679C;&#x9700;&#x8981;rsa&#x52A0;&#x5BC6;&#xFF0C;&#x914D;&#x7F6E;&#x516C;&#x94A5;
cc.encrypt.keyStore.location=/Users/jiangwei/configcenter.jks
cc.encrypt.keyStore.password=123456
cc.encrypt.keyStore.type=JCEKS
#&#x5982;&#x679C;&#x9700;&#x8981;&#x901A;&#x8FC7;zookeeper&#x901A;&#x77E5;&#x914D;&#x7F6E;&#x66F4;&#x65B0;&#xFF0C;&#x5219;&#x9700;&#x8981;&#x914D;&#x7F6E;
cc.sync.zkServers=127.0.0.1:2181
</code></pre><h3 id="&#x90E8;&#x7F72;">&#x90E8;&#x7F72;</h3>
<p>&#x62F7;&#x8D1D;<strong>jeesuite-config-server.jar</strong> &#x4E0E; <em><strong>application.properties</strong></em>&#x5728;&#x540C;&#x4E00;&#x76EE;&#x5F55;&#xFF0C;springboot&#x4F1A;&#x4F18;&#x5148;&#x52A0;&#x8F7D;&#x540C;&#x4E00;&#x76EE;&#x5F55;&#x4E0B;&#x540D;&#x4E3A;<em>application.properties&#x7684;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x3002;</em></p>
<pre><code>nohup java -jar jeesuite-config-server.jar &gt; config-server.out 2&gt;&amp;1 &amp;
</code></pre><p>&#x542F;&#x52A8;&#x6210;&#x529F;,&#x6253;&#x5F00;<a href="http://127.0.0.1:19992" target="_blank">http://127.0.0.1:19992</a> &#xFF0C;&#x521D;&#x59CB;&#x8D26;&#x53F7;&#x5BC6;&#x7801;&#xFF1A;admin /admin123</p>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="../quick-start.html" class="navigation navigation-prev " aria-label="Previous page: 快速开始">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="oneplatform.html" class="navigation navigation-next " aria-label="Next page: oneplatform企业级开发平台">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"配置中心","level":"1.2.1","depth":2,"next":{"title":"oneplatform企业级开发平台","level":"1.2.2","depth":2,"path":"quickstart/oneplatform.md","ref":"quickstart/oneplatform.md","articles":[]},"previous":{"title":"快速开始","level":"1.2","depth":1,"path":"quick-start.md","ref":"quick-start.md","articles":[{"title":"配置中心","level":"1.2.1","depth":2,"path":"quickstart/confcenter.md","ref":"quickstart/confcenter.md","articles":[]},{"title":"oneplatform企业级开发平台","level":"1.2.2","depth":2,"path":"quickstart/oneplatform.md","ref":"quickstart/oneplatform.md","articles":[]},{"title":"统一认证平台","level":"1.2.3","depth":2,"path":"quickstart/passport.md","ref":"quickstart/passport.md","articles":[]}]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"quickstart/confcenter.md","mtime":"2018-05-04T10:12:22.082Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-05-04T10:30:11.187Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

